package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 下发设置
 * </p>
 *
 * @author kutty
 * @since 2018-10-08
 */
@TableName("phone_phoneset")
public class Phoneset extends Model<Phoneset> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 国家ID
     */
    private String countryid;
    /**
     * 省份ID
     */
    private String provinceid;
    /**
     * 型号ID
     */
    private String modelid;
    /**
     * 运营商ID
     */
    private String operatorid;
    /**
     * 数量
     */
    private Integer num;
    /**
     * 渠道ID
     */
    private String channelid;
    /**
     * 开始时间
     */
    private Date begintime;
    /**
     * 结束时间
     */
    private Date endtime;
    /**
     * 流量
     */
    private String flow;
    /**
     * sdk版本
     */
    @TableField("sdk_version")
    private String sdkVersion;
    /**
     * 是否使用
     */
    private Integer isuse;
    /**
     * 排序
     */
    private Integer orderby;
    /**
     * 系统版本
     */
    @TableField("os_version")
    private String osVersion;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCountryid() {
        return countryid;
    }

    public void setCountryid(String countryid) {
        this.countryid = countryid;
    }

    public String getProvinceid() {
        return provinceid;
    }

    public void setProvinceid(String provinceid) {
        this.provinceid = provinceid;
    }

    public String getModelid() {
        return modelid;
    }

    public void setModelid(String modelid) {
        this.modelid = modelid;
    }

    public String getOperatorid() {
        return operatorid;
    }

    public void setOperatorid(String operatorid) {
        this.operatorid = operatorid;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getChannelid() {
        return channelid;
    }

    public void setChannelid(String channelid) {
        this.channelid = channelid;
    }

    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getFlow() {
        return flow;
    }

    public void setFlow(String flow) {
        this.flow = flow;
    }

    public String getSdkVersion() {
        return sdkVersion;
    }

    public void setSdkVersion(String sdkVersion) {
        this.sdkVersion = sdkVersion;
    }

    public Integer getIsuse() {
        return isuse;
    }

    public void setIsuse(Integer isuse) {
        this.isuse = isuse;
    }

    public Integer getOrderby() {
        return orderby;
    }

    public void setOrderby(Integer orderby) {
        this.orderby = orderby;
    }

    public String getOsVersion() {
        return osVersion;
    }

    public void setOsVersion(String osVersion) {
        this.osVersion = osVersion;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Phoneset{" +
        "id=" + id +
        ", countryid=" + countryid +
        ", provinceid=" + provinceid +
        ", modelid=" + modelid +
        ", operatorid=" + operatorid +
        ", num=" + num +
        ", channelid=" + channelid +
        ", begintime=" + begintime +
        ", endtime=" + endtime +
        ", flow=" + flow +
        ", sdkVersion=" + sdkVersion +
        ", isuse=" + isuse +
        ", orderby=" + orderby +
        ", osVersion=" + osVersion +
        "}";
    }
}
